package com.jh.fcsm.beans.sys;

import com.jh.fcsm.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.apache.ibatis.type.JdbcType;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @author szx
 * @Description:
 * @date 2020-07-06 09:00:29
 */
@Table(name = "SYS_ROLE")
@ApiModel(value = "com.jh.fcsm.beans.sys.SysRole", description = "")
public class SysRole extends BaseEntity {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @Column(name = "STATUS_TXT")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "状态（启用,停用）")
    private String statusTxt;

    @Column(name = "STATUS")
    @ColumnType(jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "状态（1启用,0停用）")
    private Integer status;

    @Column(name = "ORDER_VAL")
    @ColumnType(jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "排序值")
    private Integer orderVal;

    @Column(name = "REMARK")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "备注信息")
    private String remark;

    @Column(name = "ROLE_NAME")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @Column(name = "ROLE_CODE")
    @ColumnType(jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @Column(name = "DYNAMIC_VER")
    @ColumnType(jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "是否开启登录动态验证码 1:是  0:否")
    private Integer dynamicVer;

    public Integer getDynamicVer() {
        return dynamicVer;
    }

    public void setDynamicVer(Integer dynamicVer) {
        this.dynamicVer = dynamicVer;
    }

    /**
     * GET 状态（启用,停用）
     *
     * @return statusTxt
     */
    public String getStatusTxt() {
        return statusTxt;
    }

    /**
     * SET 状态（启用,停用）
     *
     * @param statusTxt
     */
    public void setStatusTxt(String statusTxt) {
        this.statusTxt = statusTxt == null ? null : statusTxt.trim();
    }

    /**
     * GET 状态（1启用,0停用）
     *
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * SET 状态（1启用,0停用）
     *
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * GET 排序值
     *
     * @return orderVal
     */
    public Integer getOrderVal() {
        return orderVal;
    }

    /**
     * SET 排序值
     *
     * @param orderVal
     */
    public void setOrderVal(Integer orderVal) {
        this.orderVal = orderVal;
    }

    /**
     * GET 备注信息
     *
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * SET 备注信息
     *
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * GET 角色名称
     *
     * @return roleName
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * SET 角色名称
     *
     * @param roleName
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    /**
     * GET 角色编码
     *
     * @return roleCode
     */
    public String getRoleCode() {
        return roleCode;
    }

    /**
     * SET 角色编码
     *
     * @param roleCode
     */
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode == null ? null : roleCode.trim();
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}